﻿namespace Eldert.BTUG.IoT.Device.Simulation
{
    using System;
    using System.Threading.Tasks;

    /// <summary>
    /// Application used to simulate an IoT device for a ship's engine.
    /// </summary>
    public class Simulator
    {
        /// <summary>
        /// Main method which will start the application.
        /// </summary>
        public static void Main()
        {
            Console.WriteLine("Starting simulated gateway device, press any key to exit...");
            new TaskFactory().StartNew(ProcessEngineReadings.Send);
            new TaskFactory().StartNew(SettingsManagement.CheckForUpdatedSettings);
            Console.ReadKey();
        }
    }
}
